<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='zh-CN' xml:lang='zh-CN' xmlns='http://www.w3.org/1999/xhtml'>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta http-equiv="Content-Language" content="zh-CN"/>
        <meta name="robots" content="index, follow" />
        <link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico" />
        <title>氿上网</title>
        {$system_css}
        {$system_js}
        <script type="text/javascript">
            $(function(){
                $("#myform").validate({
                    rules: {
                        company_code:{
                            number:true
                        }
                    },
                    messages: {
                        company_code:{
                            number:'邮编必须为数字'
                        }
                    }
                });
            })
        </script>
    </head>
    <body>

        <div id="OSC_Screen">
            {include file="header.html"}
            <div id="OSC_Content" class='CenterDiv'>
          {include file='user_nav.html'}
                {include file="message.html"}
                <div class="MainForm" id="reg_page">
                    <form id="myform" name="myform" action="{$site_url}usercompany/save_profile" method="post" style="float:left; width:620px;">
                        <table cellspacing='0' cellpadding='0'>

                            <tr id='tr_user'>
                                <th >公司名称：</th>
                                <td>
                                    <input type='text' name='company_name' id='qq' value='{$data.company_name}' class='TEXT' style='width:300px;'/>
                                </td>    			
                            </tr>
                            <tr><td height="20"></td></tr>

                            <tr id='tr_user'>
                                <th >公司性质：</th>
                                <td>
                                    {if count($company_attr_list)>0}
                                    {foreach from=$company_attr_list item=company_attr name=ca}
                                    {if $smarty.foreach.ca.iteration mod 5==0}
                                    <br/>
                                    {/if}
                                    <input type="radio" name="company_attr" value="{$company_attr.id}" id="ca_{$company_attr.id}" {if $data.company_attr == $company_attr.id}checked{/if}> <label for="ca_{$company_attr.id}">{$company_attr.name}</label>
                                        {/foreach}
                                        {/if}
                                </td>    			
                            </tr>
                            <tr><td height="20"></td></tr>
                            <tr id='tr_user'>
                                <th >工作性质：</th>
                                <td>
                                    {if count($job_attr_list)>0}
                                    {foreach from=$job_attr_list item=job_attr name=ja}
                                    {if $smarty.foreach.ja.iteration mod 5==0}
                                    <br/>
                                    {/if}
                                    <input type="radio" name="company_work_attr" value="{$job_attr.id}" id="ja_{$job.id}" {if $data.company_work_attr == $job_attr.id}checked{/if}> <label for="ja_{$job_attr.id}">{$job_attr.name}</label>
                                        {/foreach}
                                        {/if}
                                </td>    
                            </tr>
                            <tr><td height="20"></td></tr>
                            <tr id='tr_user'>
                                <th >工作职务：</th>
                                <td>
                                    {if count($job_list)>0}
                                    {foreach from=$job_list item=job name=j}
                                    {if $smarty.foreach.j.iteration mod 5==0}
                                    <br/>
                                    {/if}
                                    <input type="radio" name="company_job" value="{$job.id}" id="job_{$job.id}" {if $data.company_job == $job.id}checked{/if}> <label for="job_{$job.id}">{$job.name}</label>
                                        {/foreach}
                                        {/if}
                                </td>    			
                            </tr>
                            <tr><td height="20"></td></tr>
                            <tr id='tr_user'>
                                <th >从事专业：</th>
                                <td>
                                    {if count($work_list)>0}
                                    {foreach from=$work_list item=work name=w}
                                    {if $smarty.foreach.w.iteration mod 5==0}
                                    <br/>
                                    {/if}
                                    <input type="checkbox" name="company_works[]" value="{$work.id}" id="work_{$work.id}" {if in_array($work.id,$data.company_works)}checked{/if}> <label for="work_{$work.id}">{$work.name}</label>
                                        {/foreach}
                                        {/if}
                                </td>    			
                            </tr>
                            <tr><td height="20"></td></tr>
                            <tr id='tr_user'>
                                <th >通信地址：</th>
                                <td>
                                    <input type='text' name='company_address' id='company_address' value='{$data.company_address}' class='TEXT' style='width:300px;'/>
                                </td>    			
                            </tr>

                            <tr id='tr_user'>
                                <th >邮编：</th>
                                <td>
                                    <input type='text' name='company_code' id='company_code' value='{$data.company_code}' class='TEXT' style='width:300px;'/>
                                </td>    			
                            </tr>


                            <tr id='tr_user'>
                                <th >电话：</th>
                                <td>
                                    <input type='text' name='company_phone' id='company_phone' value='{$data.company_phone}' class='TEXT' style='width:300px;'/>
                                </td>    			
                            </tr>

                            <tr id='tr_area'>
                                <th>公司简介：</th>	
                                <td class="y-bg"><textarea style="height:80px; width:100%" id="value" cols="50" rows="2" name="company_description">{$data.company_description}</textarea>
                                </td>
                            </tr>

                            <tr class='buttons'>
                                <th>&nbsp;</th>		
                                <td style='padding:20px 0;'>
                                    <input type='submit' value=' 更改 ' class='BUTTON SUBMIT'/><br/><br/>
                                </td>
                            </tr>
                        </table>
                    </form>
                    <div class='clear'></div>
                </div>

            </div>
            <div class='clear'></div></div>
        <div class='clear'></div>
        {include file="footer.html"}
        </div>

    </body>
</html>
